Followup to Ib2db241a.
Change-Id: I138ecaf20feac162a554591332e5c4d1e3234768
if ( $isBinary || $isTooLong ) {
$message = $this
->msg( $isBinary ? 'pageswithprop-prophidden-binary' : 'pageswithprop-prophidden-long' )
- ->numParams( round( $valueLength / 1024, 2 ) );
+ ->params( $this->getLanguage()->formatSize( $valueLength ) );
$propValue = Html::element( 'span', array( 'class' => 'prop-value-hidden' ), $message->text() );
} else {
'pageswithprop-text' => 'This page lists pages that use a particular page property.',
'pageswithprop-prop' => 'Property name:',
'pageswithprop-submit' => 'Go',
-'pageswithprop-prophidden-long' => 'long text property value hidden ($1 kilobytes)',
-'pageswithprop-prophidden-binary' => 'binary property value hidden ($1 kilobytes)',
+'pageswithprop-prophidden-long' => 'long text property value hidden ($1)',
+'pageswithprop-prophidden-binary' => 'binary property value hidden ($1)',
'doubleredirects' => 'Double redirects',
'doubleredirects-summary' => '', # do not translate or duplicate this message to other languages
'pageswithprop-prophidden-long' => 'Information shown on [[Special:PagesWithProp]] when property value is longer than 1 kilobyte.
Parameters:
-* $1 - size of property value in kilobytes
+* $1 - size of property value, formatted
See also:
* {{msg-mw|pageswithprop-prophidden-binary}}',
'pageswithprop-prophidden-binary' => 'Information shown on [[Special:PagesWithProp]] when property value contains binary data.
Parameters:
-* $1 - size of property value in kilobytes
+* $1 - size of property value, formatted
See also:
* {{msg-mw|pageswithprop-prophidden-long}}',